import Layout from '@/layout'

const remittance = {
  path: '/remittance',
  component: Layout,
  redirect: '/remittance/remittanceList',
  meta: {
    title: '回款单',
    icon: 'el-icon-notebook-2',
    roles: ['f05']
  },
  children: [
    {
      path: 'remittanceList',
      component: () => import('@/views/remittance/RemittanceList'),
      name: 'remittanceList',
      meta: {
        keepAlive: true,
        title: '回款单',
        icon: 'el-icon-notebook-2',
        affix: true,
        roles: ['f05']
      }
    },
    {
      path: 'remittanceDetail',
      component: () => import('@/views/remittance/RemittanceDetail'),
      name: 'remittanceDetail',
      hidden: true,
      meta: {
        title: '回款详情',
        icon: 'el-icon-notebook-2',
        affix: true,
        roles: ['f05_01']
      }
    }
  ]
}

export default remittance
